﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Noebe.Orm.testdriven
{
    [OrmAlias("IPerson")]
    public interface Person
    {
        [OrmPrimaryKey]
        string StringValue { get;set;}
        string[] StringArray { get;set;}
        List<string> StringList { get;set;}
        int IntValue { get;set;}
        byte[] BytesValue { get;set;}
        Sex EnumValue { get;set;}
        Car OrmObject { get;set;}
        List<Car> OrmList { get;set;}
        Car[] OrmArray { get;set;}
    }

    [OrmAlias("ICar")]
    public interface Car
    {
        [OrmPrimaryKey]
        string StringValue { get;set;}
        string[] StringArray { get;set;}
        List<string> StringList { get;set;}
        int IntValue { get;set;}
        byte[] BytesValue { get;set;}
        CarWindow OrmObject { get;set;}
        List<CarWindow> OrmList { get;set;}
        CarWindow[] OrmArray { get;set;}
    }

    [OrmAlias("ICarWindow")]
    public interface CarWindow
    {
        [OrmPrimaryKey]
        string StringValue { get;set;}
        string[] StringArray { get;set;}
        List<string> StringList { get;set;}
        int IntValue { get;set;}
        byte[] BytesValue { get;set;}
        CarPart OrmObject { get;set;}
        List<CarPart> OrmList { get;set;}
        CarPart[] OrmArray { get;set;}
    }

    [OrmAlias("ICarPart")]
    public interface CarPart
    {
        [OrmPrimaryKey]
        string StringValue { get;set;}
    }

    public enum Sex
    {
        Man,
        Lady,
    }
}
